﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JoyxyAnalyzer.Utils;

namespace JoyxyAnalyzer
{
    public class ApplicationConfig
    {
        /// <summary>
        /// 
        /// </summary>
        public static string APP_CONFIG_FILE = getAppPath() + "\\config.ini";

        /// <summary>
        /// 
        /// </summary>
        public static string SECTION_GENERAL = "GENERAL";

        /// <summary>
        /// Application Configuration
        /// </summary>
        public static ApplicationConfig AppConfig;

        /// <summary>
        /// .ini file helper
        /// </summary>
        private static IniFileHelper _iniFileHelper = new IniFileHelper(ApplicationConfig.APP_CONFIG_FILE);

        /// <summary>
        /// 
        /// </summary>
        public static IniFileHelper IniHelper
        {
            get { return _iniFileHelper; }
        }

        /// <summary>
        /// 
        /// </summary>
        private string _nampFile;
        public string NmapFile
        {
            get { return _nampFile; }
            set { _nampFile = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private string _exportFolder;
        public string ExportFolder
        {
            get { return _exportFolder; }
            set { _exportFolder = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private Dictionary<string, string> _filterNames = new Dictionary<string,string>();
        public Dictionary<string, string> FilterNames
        {
            get { return _filterNames; }
            set { _filterNames = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static string getAppPath()
        {
            return System.Environment.CurrentDirectory;
        }
    }
}
